package ooday03;

public class Text {
    public static void main(String[] args) {
//        Chick kk=new Chick("坤坤",25,"黑色");
//        kk.eat();
//        kk.drink();
//        kk.layEggs();
//        Dog hh=new Dog("黑黑",2,"白色");
//        hh.eat();
//        hh.drink();
//        hh.lookHome();
//        Fish cc= new Fish("海绵宝宝",66,"黄色");
//        cc.eat();
//        cc.drink();
        Dog[] dogs=new Dog[3];
        dogs[0]=new Dog("小白",4,"黑色");
        dogs[1]=new Dog("坤哥",2,"蓝色");
        dogs[2]=new Dog("小米",12,"绿色");
                for(int i=0;i< dogs.length;i++){
                    System.out.println(dogs[i].name);
                    dogs[i].eat();
                }
        Chick[] chicks=new Chick[2];
                chicks[0]=new Chick("坤哥",18,"白色");
                chicks[1]=new Chick("真爱粉",15,"黑色");
                for(int i=0;i< chicks.length;i++){
                    System.out.println(chicks[i].name);
                    chicks[i].eat();
                }
                Fish[] fish=new Fish[5];
                fish[0]=new Fish("小鲤鱼",2,"金色");
                fish[1]=new Fish("双面龟",1,"绿色");
                fish[2]=new Fish("黑小虎",12,"黑色");
                fish[3]=new Fish("赖皮蛇",12,"蓝色");
                 fish[4]=new Fish("萧敬腾",12,"黑色");
                for(int i=0;i< fish.length;i++){
                    System.out.println(fish[i].name);
                    fish[i].eat();
                }


    }
}
